<template>
  <div>
    <span>欢迎: {{ router }}</span>
    <br/>
    <button @click="$router.push(`/user/${ router }/profile`)">用户信息</button>
    <button @click="$router.push(`/user/${ router }/avatar`)">用户头像</button>
    <router-view/>
  </div>
</template>

<script>
export default {
  data () {
    return {
      router: ''
    }
  },
  created () {
    this.router = this.$route.params.id
  }
}
</script>

<style lang="scss" scoped>

</style>
